package com.glink.manage.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.glink.common.exception.GeneralSimpleException;
import com.glink.manage.domain.PersonViolationRegulationsRecordBean;
import com.glink.manage.dto.person.PersonViolationRegulationsRecordIdDTO;
import com.glink.manage.dto.person.PersonViolationRegulationsRecordPageDTO;
import com.glink.manage.dto.person.PersonViolationRegulationsRecordSaveDTO;
import com.glink.manage.vo.person.PersonViolationRegulationsRecordVO;

/**
 * 违章记录
 * @author  qiushaoshan
 * @since  2025-01-13
 */
public interface PersonViolationRegulationsRecordService extends IService<PersonViolationRegulationsRecordBean> {

    /**
     * 根据用户ID查询违章记录
     * @param dto 用户ID
     * @return 违章记录
     */
    IPage<PersonViolationRegulationsRecordVO> pageByViolationRegulationsRecord(PersonViolationRegulationsRecordPageDTO dto);

    /**
     * 新增违章记录
     * @param dto 违章记录信息
     * @return 新增状态
     */
    boolean saveViolationRegulationsRecord(PersonViolationRegulationsRecordSaveDTO dto) throws GeneralSimpleException;

    /**
     * 删除违章记录
     * @param dto 违章记录ID
     * @return 删除状态
     */
    boolean delViolationRegulationsRecord(PersonViolationRegulationsRecordIdDTO dto);
}
